package com.xinghou.platform.service.main.impl;

/**
 * Created by liufangyu on 2016/9/7.
 */

import com.xinghou.platform.dao.main.UserRelationScheduleDAO;
import com.xinghou.platform.model.main.UserRelationSchedule;
import com.xinghou.platform.service.main.UserRelationScheduleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("UserRelationScheduleService")
public class UserRelationScheduleServiceImpl implements UserRelationScheduleService {
    @Resource
    private UserRelationScheduleDAO userRelationScheduleDAO;

    @Override
    public void insertUserSchedule(UserRelationSchedule userRelationSchedule){
        userRelationScheduleDAO.insertUserSchedule(userRelationSchedule);
    }

    @Override
    public List<UserRelationSchedule> getNeedList(Long nowtime){
        List<UserRelationSchedule> list =   userRelationScheduleDAO.getNeedList(nowtime);
        System.out.print("调用 service" +nowtime +"list size is "+list.size());
        return list;
    }

    @Override
    public void addNowCount(UserRelationSchedule userRelationSchedule){
        userRelationScheduleDAO.addNowCount(userRelationSchedule);
    }

}
